import requests
import json

host = 'http://127.0.0.1:5000'
path = "/upload"

url = host + path

data = {
    "image": open("01.png","rb")
}

re = requests.post(url=url,files=data)

print(re)
print(re.request.url)
print(re.request.headers)
# print(re.request.body)
print(re.headers)
print(json.loads(re.text))